If
a drawing file is damaged, you can recover some or all of the data
by using commands to find and correct errors.
Repair and Recovery
When
an error occurs, diagnostic information is recorded in the acad.err file, which
you can use to report a problem.
A drawing file is marked as damaged if corrupted
data is detected, or if you request that the drawing be saved after
a program failure. If the damage is minor, sometimes you can repair
the drawing simply by opening it. A recovery notification is displayed
while opening drawing files that are damaged and need recovery.
You can
- RECOVER. Performs an
audit on, and attempts to open, any drawing file.
- RECOVERALL. Similar to
recover, it additionally operates on all nested xrefs. The results
are displayed in the Drawing Recovery Log window.
- AUDIT. Finds and corrects
errors in the current drawing.
- RECOVERAUTO. Controls the
display of recovery notifications before or after opening a damaged
drawing file.
Example: Auditing Files
Auditing a file generates a description of problems
with a drawing file and recommendations for correcting them. As
you start the audit, you specify whether you want the program to
try to fix the problems it encounters. The report is similar to
the following example:
Auditing Header
DXF NAME Current Value
Validation Default
PDMODE 990 - 2040
UCSFOLLOW 811 or 0
Error found in auditing
header variables
4 Blocks audited
Pass 1 4 objects audited
Pass 2 4 objects audited
Total errors found
2 fixed 2
If you chose not to correct the errors, the
last statement changes to
Total errors found
2 fixed 0.
The output from a recovery audit is written
to an audit log (ADT) file if the AUDITCTL system variable
is set to 1 (On).
Recovery does not necessarily preserve the high-level
consistency of the drawing file. The program extracts as much material
as it can from the damaged file.
To repair a damaged drawing
file
To repair a damaged drawing
file due to a system failure
- If the program encounters a problem and
cannot continue, it displays an error message and, for some errors,
an error code. Record the error code number, save the changes if
possible, and exit to the operating system.
- Restart the program.
- In the Drawing Recovery window, under
Backup Files, double-click the drawing node to expand it. On the
list, double-click one of the drawing or backup files to open it.
If the program detects that the drawing has
been damaged, a message is displayed asking if you want to proceed.
- Enter y to proceed.
As the program attempts to repair the drawing,
a diagnostic report is displayed. The output from the audit is written
to an audit log (ADT) file if the AUDITCTL system variable is set
to 1 (On).
- Depending on whether the repair is successful,
do one of the following:
- If the repair is successful, the drawing
opens. Save the drawing file.
- If the program cannot repair the file,
a message is displayed. In that case, choose one of the other drawing
or backup files listed in the Drawing Recovery window beginning
with step 3.
To repair an open drawing
- Click the Application button, and click
Drawing
Audit.
- At the
Fix
Any Errors Detected?
prompt, enter y or n.
AUDIT places all objects with errors in the
Previous selection set for easy access. The output from the audit
is written to an audit log (ADT) file if the AUDITCTL system variable
is set to 1 (On).
NoteIf the drawing contains
errors that AUDIT cannot fix, try using RECOVER. RECOVER repairs
any specified DWG file that is not the current drawing file.
To restore a drawing from
a backup file
- In Windows Explorer, locate the backup
file identified by the .bak file extension.
- Right-click the backup file. Click Rename.
- Type a new name using the .dwg file
extension.
- Open the file as you would open any other
drawing file.
CommandsAUDIT
Evaluates the integrity
of a drawing and corrects some errors.
DRAWINGRECOVERY
Displays a list of drawing
files that can be recovered after a program or system failure.
OPTIONS
Customizes the program
settings.
RECOVER
Repairs and then opens
a damaged drawing file.
RECOVERALL
Repairs and then opens
a damaged drawing file.
System VariablesAUDITCTL
Controls whether AUDIT
creates an audit report (ADT) file.
RECOVERAUTO
Controls the display
of recovery notifications before or after opening a damaged drawing
file.
REPORTERROR
Controls whether an
error report can be sent to Autodesk if the program closes unexpectedly.